import Login from '../pages/login/loginPanel';
import Homepage from '../pages/homepage/homepage';
//数据采集
import Task from '../pages/dataCollection/task/task';
import TASKMonitor from '../pages/dataCollection/task/components/Monitor'
import TaskLog from '../pages/dataCollection/task/components/TaskLog';
import createTask from '../pages/dataCollection/task/components/createTask/createTask';
//资源目录
import Category from '../pages/resourceList/category/category';//，目录分类
import Metadata from '../pages/resourceList/metadata/metadata';
import CategoryRegis from '../pages/resourceList/categoryManage/categoryRegis'//目录注册
import CategoryAudit from '../pages/resourceList/categoryAudit/index' //目录审核
import CategoryPublish from '../pages/resourceList/categoryPublish/index'
import ResourceConnect from '../pages/resourceList/resourceConnect/resourceConnect';
import Application from '../pages/resourceService/application';
import Shared from '../pages/resourceService/shared';
import Applied from '../pages/resourceService/applied/apply';
//数据源
import TableManagement from '../pages/dataSource/table/connectionList/connectionList';
import TableList from '../pages/dataSource/table/TableList/tableList';
import FileManagement from '../pages/dataSource/file/fileManagement';
import ApiManagement from '../pages/dataSource/webApi/webApi';
//交换管理
import Exchange from '../pages/exchangeManage/exchange';
//基础配置
import Organization from '../pages/configuration/organization/organization';
import Node from '../pages/configuration/node/node';
import ResourceType from '../pages/configuration/type/type';



const routerData = [
  {
    name: '登录',
    path: '/login',
    component:Login, 
    /* layout: 'mainLayout' */
  },
  {
    name: '首页',
    path: '/homepage',
    component: Homepage
  },
  {
    name: '数据采集任务管理',
    path: '/dataCollection/task',
    component: Task 
  },
  {
    name: '数据采集任务管理',
    path: '/dataCollection/monitor',
    component: TASKMonitor
  },{
    name: '数据采集任务管理',
    path: '/dataCollection/taskLog',
    component: TaskLog
  },
  {
    name: '数据采集任务管理',
    path: '/dataCollection/taskCreate',
    component: createTask
  },
  {
    name: '元数据管理',
    path: '/resourceList/metadata',
    component:Metadata
  },
  {
    name: '目录分类',
    path: '/resourceList/category',
    component:Category
  },
  {
    name: '目录登记',
    path: '/resourceList/categoryManagement/register',
    component: CategoryRegis
  },{
    name: '目录审核',
    path: '/resourceList/categoryManagement/audit',
    component: CategoryAudit
  },{
    name: '目录发布',
    path: '/resourceList/categoryManagement/release',
    component: CategoryPublish
  },
  {
    name: '资源挂接',
    path: '/resourceList/resourceConnect',
    component:ResourceConnect
  },
  {
    name: '资源申请',
    path: '/resourceService/application',
    component:Application
  },{
    name: '已申请资源',
    path: '/resourceService/applied',
    component:Applied
  },{
    name: '已共享资源',
    path: '/resourceService/shared',
    component:Shared
  },
  {
    name: '库表管理',
    path: '/dataSource/table',
    component: TableManagement,
    exact: true,
  },
  {
    name: '数据库表列表',
    path: '/dataSource/table/tableList/:dataType/:databaseName/:databaseId',
    component: TableList,
    exact: true,
  },
  {
    name: '文件管理',
    path: '/dataSource/file',
    component: FileManagement
  },
  {
    name: '接口管理',
    path: '/dataSource/interface',
    component: ApiManagement,
  },
  {
    name: '交换管理',
    path: '/exchangeManagement/exchange',
    component: Exchange,
  },
  {
    name: '组织管理',
    path: '/configuration/organization',
    component: Organization,
  },{
    name: '节点管理',
    path: '/configuration/node',
    component: Node,
  },{
    name: '类目管理',
    path: '/configuration/type',
    component: ResourceType,
  },
]

export { routerData };